package com.example.service.impl;

import com.example.model.DTO.OrderDTO;
import com.example.model.PO.Order;
import com.example.service.OrderService;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl implements OrderService {


    @Override
    public Order check(OrderDTO orderDTO) {

        Order order = Order.builder()
                .id(orderDTO.getId())
                .name("扫地机器人")
                .build();
        return order;
    }
}
